package com.xidian.zhiancloud.service.myyb;

import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xidian.zhiancloud.dao.SysDepartMapper;
import com.xidian.zhiancloud.model.SysDepart;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 组织层级
 */
@Service
public class IDepartService extends ServiceImpl
        <SysDepartMapper,SysDepart> implements IService<SysDepart> {

    @Autowired
    private SysDepartMapper departMapper;

    public SysDepart selectByPrimaryKey(Long id) {
        return departMapper.selectByPrimaryKey(id);
    }


    public List<SysDepart> selectDepartList() {
        return departMapper.selectDepartList();
    }

}
